home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / fsovl / DMakefile < prev    next >
Makefile  |  1993-01-25  |  1KB  |  49 lines

  1.  
  2. #   DMakefile for FSOVL, a handler that overlays a directory or directory
  3. #   tree and provides additional capabilities.    Our handler provides
  4. #   automatic compression and decompression.
  5.  
  6. OD= dtmp:fsovl/
  7. #SRCS= main.c init.c dos.c core.c compress.c
  8. SRCS= main.c init.c dos.c core.c zipcomp.c
  9. OBJS= $(SRCS:"*.c":"$(OD)*.o")
  10. EXE= dcc:l/fsovl-handler
  11. PROTOS= $(OD)fsovl-protos.h
  12. #CFLAGS= -mi -I$(OD) -DFSDEBUG
  13. CFLAGS= -ms -mi -I$(OD) -DFSDEBUG
  14. ZIPCFLAGS= $(CFLAGS) -DSMALL_MEM -DWSIZE=8192
  15.  
  16. ZIPSRCS= zip/globals.c \
  17.      zip/zip/bits.c zip/zip/trees.c zip/zip/deflate.c \
  18.      zip/zip/util.c zip/zip/x.c \
  19.      zip/unzip/inflate.c zip/unzip/x.c zip/unzip/y.c
  20. ZIPOBJS= $(ZIPSRCS:"*.c":"$(OD)*.o")
  21.  
  22. all: $(OD) $(PROTOS) $(EXE)
  23.  
  24. $(EXE) : $(OBJS) $(ZIPOBJS)
  25.     dcc $(CFLAGS) %(right) -o %(left)
  26.  
  27. #    -mount test: from mountlist.local
  28.  
  29. $(OBJS) : $(SRCS)
  30.     dcc $(CFLAGS) %(right) -o %(left) -c
  31.  
  32. $(ZIPOBJS) : $(ZIPSRCS)
  33.     dcc $(ZIPCFLAGS) %(right) -o %(left) -c -Izip -I%(right:*/*/*:*/*)
  34.  
  35. $(OD) : $(OD)
  36.     makedir %(left:*/:*)
  37.     makedir %(left)zip
  38.     makedir %(left)zip/zip
  39.     makedir %(left)zip/unzip
  40.  
  41. $(PROTOS) : $(SRCS)
  42.     -delete %(left) $(OD)defs.m
  43.     makeproto -o%(left) %(right)
  44.  
  45. clean:
  46.     -delete $(OBJS)
  47.     -delete $(ZIPOBJS)
  48.  
  49.